package com.me.services;

import com.me.model.normal.NormalUser;

import java.util.Collection;

public interface IUserService<T> {
	boolean addUser(T user);
	
	boolean addUser(T user, boolean isAdmin);
	
	boolean isUserExist(String userName);
	
	T login(String uname, String pwd);
	
	boolean isUserCanLogin(String uName, String pwd);
	
	Collection<T> getAll();

	void update(NormalUser u);

	boolean remove(String id);

	NormalUser getById(String id);
}
